﻿using RBAC.Repository.RabbitInterfae;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Traceability.Domain;
using Traceability.Service.Interfae;

namespace Traceability.Service.Impl
{
    public class GoodsService : IGoodsService
    {
        private readonly IGoodsRepository _goodsRepository;
        public GoodsService(IGoodsRepository goodsRepository)
        {
            _goodsRepository = goodsRepository;
        }
        /// <summary>
        /// 显示商品
        /// </summary>
        /// <returns></returns>
        public async Task<List<Goodsd>> GetGoodsdsAsync()
        {
           return await _goodsRepository.GetAllAsync();
        }
    }
}
